package com.mit.common.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * It is the super class of all Data Transfer Object (DTO).
 * 
 * @author River Yu
 * 
 */
public abstract class AbstractDTO implements Serializable {
	protected Integer id;
	protected Date creationTime;
	protected Date lastUpdatedTime;
	
	protected Integer pageSize;
	protected Integer pageNo;
	protected Integer rowNum;
	
	protected Integer orgId;
	
	public Integer getRowFrom(){
		return (pageNo - 1) * pageSize;
	}
	

	
	public Integer getOrgId() {
		return orgId;
	}
	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getCreationTime() {
		return creationTime;
	}
	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}
	public Date getLastUpdatedTime() {
		return lastUpdatedTime;
	}
	public void setLastUpdatedTime(Date lastUpdatedTime) {
		this.lastUpdatedTime = lastUpdatedTime;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getPageNo() {
		return pageNo;
	}
	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}
	public Integer getRowNum() {
		return rowNum;
	}
	public void setRowNum(Integer rowNum) {
		this.rowNum = rowNum;
	}

	

}
